import { ref } from 'vue'

export const matchData = ref({
  cubeTypes: ['二阶魔方', '三阶魔方', '金字塔魔方', '斜转魔方'],
  selectedCubeType: '三阶魔方',
  roundTypes: ['第一轮', '第二轮', '第三轮'],
  selectedRound: '第一轮',
  homeSchool: '浦园路分校',
  awaySchool: '万江分校',
  homeScore: 3,
  awayScore: 0,
  rounds: [
    { title: '第一轮胜出：', winner: '浦园路分校' },
    { title: '第二轮胜出：', winner: '万江分校' },
    { title: '第三轮胜出：', winner: '浦园路分校' }
  ],
  players: [
    {
      id: 1,
      name1: '张三',
      name2: '李四',
      school1: '浦园路分校',
      school2: '万江分校',
      '二阶魔方': {
        round1: { score1: 5.234, score2: 6.567, result: '浦园路分校' },
        round2: { score1: 6.123, score2: 5.876, result: '万江分校' },
        round3: { score1: 5.876, score2: 6.234, result: '浦园路分校' }
      },
      '三阶魔方': {
        round1: { score1: 8.123, score2: 9.456, result: '万江分校', home_performance_time: 8.123, away_performance_time: 9.456, home_final_time: 8.123, away_final_time: 9.456, home_is_solved: true, away_is_solved: true, home_penalty: false, away_penalty: false },
        round2: { score1: 9.234, score2: 8.876, result: '浦园路分校', home_performance_time: 9.234, away_performance_time: 8.876, home_final_time: 9.234, away_final_time: 8.876, home_is_solved: true, away_is_solved: true, home_penalty: false, away_penalty: false },
        round3: { score1: 8.765, score2: 9.123, result: '万江分校', home_performance_time: 8.765, away_performance_time: 9.123, home_final_time: 8.765, away_final_time: 9.123, home_is_solved: true, away_is_solved: true, home_penalty: false, away_penalty: false }
      },
      '金字塔魔方': {
        round1: { score1: 7.234, score2: 6.567, result: '万江分校' },
        round2: { score1: 6.876, score2: 7.234, result: '浦园路分校' },
        round3: { score1: 7.123, score2: 6.987, result: '万江分校' }
      },
      '斜转魔方': {
        round1: { score1: 12.234, score2: 11.567, result: '万江分校' },
        round2: { score1: 11.876, score2: 12.234, result: '浦园路分校' },
        round3: { score1: 12.123, score2: 11.987, result: '万江分校' }
      }
    },
    {
      id: 2,
      name1: '王五',
      name2: '赵六',
      school1: '浦园路分校',
      school2: '万江分校',
      '二阶魔方': {
        round1: { score1: 6.876, score2: 5.432, result: '万江分校' },
        round2: { score1: 5.543, score2: 6.765, result: '浦园路分校' },
        round3: { score1: 6.234, score2: 5.987, result: '万江分校' }
      },
      '三阶魔方': {
        round1: { score1: 9.123, score2: 8.456, result: '浦园路分校' },
        round2: { score1: 8.234, score2: 9.876, result: '万江分校' },
        round3: { score1: 9.432, score2: 8.765, result: '浦园路分校' }
      },
      '金字塔魔方': {
        round1: { score1: 6.234, score2: 7.567, result: '万江分校' },
        round2: { score1: 7.234, score2: 6.876, result: '浦园路分校' },
        round3: { score1: 6.876, score2: 7.123, result: '万江分校' }
      },
      '斜转魔方': {
        round1: { score1: 11.234, score2: 12.567, result: '浦园路分校' },
        round2: { score1: 12.234, score2: 11.876, result: '万江分校' },
        round3: { score1: 11.876, score2: 12.123, result: '浦园路分校' }
      }
    },
    {
      id: 3,
      name1: '钱七',
      name2: '孙八',
      school1: '浦园路分校',
      school2: '万江分校',
      '二阶魔方': {
        round1: { score1: 5.123, score2: 6.654, result: '浦园路分校' },
        round2: { score1: 6.234, score2: 5.876, result: '万江分校' },
        round3: { score1: 5.876, score2: 6.123, result: '浦园路分校' }
      },
      '三阶魔方': {
        round1: { score1: 8.765, score2: 9.234, result: '万江分校' },
        round2: { score1: 9.123, score2: 8.876, result: '浦园路分校' },
        round3: { score1: 8.876, score2: 9.432, result: '万江分校' }
      },
      '金字塔魔方': {
        round1: { score1: 7.123, score2: 6.876, result: '万江分校' },
        round2: { score1: 6.876, score2: 7.234, result: '浦园路分校' },
        round3: { score1: 7.234, score2: 6.987, result: '万江分校' }
      },
      '斜转魔方': {
        round1: { score1: 11.876, score2: 12.234, result: '浦园路分校' },
        round2: { score1: 12.123, score2: 11.876, result: '万江分校' },
        round3: { score1: 11.987, score2: 12.234, result: '浦园路分校' }
      }
    },
    {
      id: 4,
      name1: '周九',
      name2: '吴十',
      school1: '浦园路分校',
      school2: '万江分校',
      '二阶魔方': {
        round1: { score1: 6.765, score2: 5.234, result: '万江分校' },
        round2: { score1: 5.987, score2: 6.234, result: '浦园路分校' },
        round3: { score1: 6.123, score2: 5.876, result: '万江分校' }
      },
      '三阶魔方': {
        round1: { score1: 9.876, score2: 8.765, result: '浦园路分校' },
        round2: { score1: 8.987, score2: 9.234, result: '万江分校' },
        round3: { score1: 9.234, score2: 8.876, result: '浦园路分校' }
      },
      '金字塔魔方': {
        round1: { score1: 6.876, score2: 7.123, result: '万江分校' },
        round2: { score1: 7.234, score2: 6.987, result: '浦园路分校' },
        round3: { score1: 6.987, score2: 7.234, result: '万江分校' }
      },
      '斜转魔方': {
        round1: { score1: 12.234, score2: 11.876, result: '浦园路分校' },
        round2: { score1: 11.987, score2: 12.234, result: '万江分校' },
        round3: { score1: 12.123, score2: 11.876, result: '浦园路分校' }
      }
    },
    {
      id: 5,
      name1: '郑一',
      name2: '王二',
      school1: '浦园路分校',
      school2: '万江分校',
      '二阶魔方': {
        round1: { score1: 5.345, score2: 6.987, result: '浦园路分校' },
        round2: { score1: 6.234, score2: 5.876, result: '万江分校' },
        round3: { score1: 5.876, score2: 6.123, result: '浦园路分校' }
      },
      '三阶魔方': {
        round1: { score1: 8.987, score2: 9.234, result: '万江分校' },
        round2: { score1: 9.234, score2: 8.876, result: '浦园路分校' },
        round3: { score1: 8.876, score2: 9.432, result: '万江分校' }
      },
      '金字塔魔方': {
        round1: { score1: 7.234, score2: 6.876, result: '万江分校' },
        round2: { score1: 6.987, score2: 7.234, result: '浦园路分校' },
        round3: { score1: 7.123, score2: 6.876, result: '万江分校' }
      },
      '斜转魔方': {
        round1: { score1: 11.987, score2: 12.234 },
        round2: { score1: 12.234, score2: 11.876 },
        round3: { score1: 11.876, score2: 12.123 }
      }
    },
    {
      id: 6,
      name1: '李三',
      name2: '张四',
      school1: '浦园路分校',
      school2: '万江分校',
      '二阶魔方': {
        round1: { score1: 6.111, score2: 5.234, result: '万江分校' },
        round2: { score1: 5.432, score2: 6.765, result: '浦园路分校' },
        round3: { score1: 6.234, score2: 5.987, result: '万江分校' }
      },
      '三阶魔方': {
        round1: { score1: 9.234, score2: 8.876, result: '浦园路分校' },
        round2: { score1: 8.876, score2: 9.432, result: '万江分校' },
        round3: { score1: 9.123, score2: 8.765, result: '浦园路分校' }
      },
      '金字塔魔方': {
        round1: { score1: 6.876, score2: 7.234 },
        round2: { score1: 7.123, score2: 6.987 },
        round3: { score1: 6.987, score2: 7.234 }
      },
      '斜转魔方': {
        round1: { score1: 12.123, score2: 11.876, result: '浦园路分校' },
        round2: { score1: 11.876, score2: 12.234, result: '万江分校' },
        round3: { score1: 12.234, score2: 11.987, result: '浦园路分校' }
      }
    },
    {
      id: 7,
      name1: '赵五',
      name2: '钱六',
      school1: '浦园路分校',
      school2: '万江分校',
      '二阶魔方': {
        round1: { score1: 5.999, score2: 6.111, result: '浦园路分校' },
        round2: { score1: 6.234, score2: 5.876, result: '万江分校' },
        round3: { score1: 5.543, score2: 6.876, result: '浦园路分校' }
      },
      '三阶魔方': {
        round1: { score1: 8.876, score2: 9.234, result: '万江分校' },
        round2: { score1: 9.123, score2: 8.765, result: '浦园路分校' },
        round3: { score1: 8.987, score2: 9.432, result: '万江分校' }
      },
      '金字塔魔方': {
        round1: { score1: 7.123, score2: 6.876, result: '万江分校' },
        round2: { score1: 6.987, score2: 7.234, result: '浦园路分校' },
        round3: { score1: 7.234, score2: 6.987, result: '万江分校' }
      },
      '斜转魔方': {
        round1: { score1: 11.876, score2: 12.234, result: '浦园路分校' },
        round2: { score1: 12.234, score2: 11.987, result: '万江分校' },
        round3: { score1: 11.987, score2: 12.123, result: '浦园路分校' }
      }
    },
    {
      id: 8,
      name1: '孙七',
      name2: '周八',
      school1: '浦园路分校',
      school2: '万江分校',
      '二阶魔方': {
        round1: { score1: 6.777, score2: 5.888, result: '万江分校' },
        round2: { score1: 5.876, score2: 6.234, result: '浦园路分校' },
        round3: { score1: 6.234, score2: 5.987, result: '万江分校' }
      },
      '三阶魔方': {
        round1: { score1: 9.234, score2: 8.876 },
        round2: { score1: 8.987, score2: 9.432 },
        round3: { score1: 9.123, score2: 8.765 }
      },
      '金字塔魔方': {
        round1: { score1: 6.987, score2: 7.234, result: '万江分校' },
        round2: { score1: 7.123, score2: 6.876, result: '浦园路分校' },
        round3: { score1: 6.876, score2: 7.234, result: '万江分校' }
      },
      '斜转魔方': {
        round1: { score1: 12.234, score2: 11.987 },
        round2: { score1: 11.987, score2: 12.234 },
        round3: { score1: 12.123, score2: 11.876 }
      }
    },
    {
      id: 9,
      name1: '吴九',
      name2: '郑十',
      school1: '浦园路分校',
      school2: '万江分校',
      '二阶魔方': {
        round1: { score1: 5.444, score2: 6.555, result: '浦园路分校' },
        round2: { score1: 6.234, score2: 5.876, result: '万江分校' },
        round3: { score1: 5.234, score2: 6.765, result: '浦园路分校' }
      },
      '三阶魔方': {
        round1: { score1: 8.987, score2: 9.234, result: '万江分校' },
        round2: { score1: 9.123, score2: 8.765, result: '浦园路分校' },
        round3: { score1: 8.876, score2: 9.432, result: '万江分校' }
      },
      '金字塔魔方': {
        round1: { score1: 7.234, score2: 6.987, result: '万江分校' },
        round2: { score1: 6.876, score2: 7.234, result: '浦园路分校' },
        round3: { score1: 7.123, score2: 6.876, result: '万江分校' }
      },
      '斜转魔方': {
        round1: { score1: 11.987, score2: 12.234 },
        round2: { score1: 12.234, score2: 11.876 },
        round3: { score1: 11.876, score2: 12.123 }
      }
    },
    {
      id: 10,
      name1: '王一',
      name2: '李二',
      school1: '浦园路分校',
      school2: '万江分校',
      '二阶魔方': {
        round1: { score1: 5.222, score2: 6.333, result: '万江分校' },
        round2: { score1: 6.987, score2: 5.543, result: '浦园路分校' },
        round3: { score1: 5.234, score2: 6.765, result: '万江分校' }
      },
      '三阶魔方': {
        round1: { score1: 9.234, score2: 8.876 },
        round2: { score1: 8.987, score2: 9.432 },
        round3: { score1: 9.123, score2: 8.765 }
      },
      '金字塔魔方': {
        round1: { score1: 6.876, score2: 7.234 },
        round2: { score1: 7.123, score2: 6.987 },
        round3: { score1: 6.987, score2: 7.234 }
      },
      '斜转魔方': {
        round1: { score1: 12.234, score2: 11.987 },
        round2: { score1: 11.987, score2: 12.234 },
        round3: { score1: 12.123, score2: 11.876 }
      }
    }
  ]
})